<?php
header('content-type:text/xml; charset=utf-8');

require_once '../requires.php';
$cfg = array(
	'type' => 'rss',
	'data' => array(
		'title' => 'test rss',
		'link' => 'http://www.example.com/framework/Feed/example/rss.php',
		'description' => 'test desc',
		'language' => 'zh-cn',
		'pubDate' => 'Mon, 03 Jan 2005 12:00:00 GMT',
		
		'items' => array(
			array(
				'title' => 'title 1',
				'link' => 'http://www.baidu.com',
				'description' => 'baidu',
			),
			array(
				'title' => 'title 2',
				'link' => 'http://www.163.com',
				'description' => 'netease',
			),
		),
	),
);

$feed = new Feed($cfg);

$feed->render();
?>